package com.beizhen.demo.controller;

import com.beizhen.demo.entity.StuOrganization;
import com.beizhen.demo.service.StuOrganizationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/*
* 机构前端控制器
* */
@Controller
@RequestMapping("/stuOrganization")
public class StuOrganizationController {
    @Autowired
    private StuOrganizationService stuOrganizationService;

    /**
     * liuyang 2020.08.10
     * 24~43行
     */

    /*添加机构*/
    @RequestMapping("/addStuOrganization")
    public String addStuOrganization(StuOrganization stuOrganization){
        int result = stuOrganizationService.addStuOrganization(stuOrganization);
        if(result>0){
            return "";
        }else{
            return "";
        }
    }

    /*修改机构信息*/
    @RequestMapping("/updStuOrganization")
    public String updStuOrganization(StuOrganization stuOrganization){
        int result = stuOrganizationService.updStuOrganization(stuOrganization);
        if(result>0){
            return "";
        }else{
            return "";
        }
    }

}
